#include <graphics.h>
#include <ctime>
#include "cover.h"
#include "info.h"
#include "game.h"

int main() {
    srand((unsigned int)time(NULL));//返回当前的系统时间 生成随机数
    initgraph(WIDTH * BLOCK_SIZE, HEIGHT * BLOCK_SIZE);
    BeginBatchDraw();

    while (true) {
        int choice = CoverLoop();
        if (choice == 1) {
            StartGame();
        } else if (choice == 2) {
            ShowInfo();
        } else if (choice == 3) {
            break;
        }
    }
    closegraph();
    return 0;
}
